package com.quectel.cms.vo.home;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author rananxin
 * @email ryan.ran@quectel.com
 * @date 2022/2/23 7:32 下午
 */
@Data
@Schema
public class CommonPieResp {

    @Schema(description = "总和")
    private Double total;

    @Schema(description = "饼图数据")
    private PieInfo[] pieData;

    @Data
    @Schema
    @AllArgsConstructor
    @NoArgsConstructor
    public static class PieInfo {
        @Schema(description = "名称")
        private String name;

        @Schema(description = "数据值")
        private Double value;
    }
}
